package com.rao.service.impl;

import com.rao.entity.VO.ClazzVO;
import com.rao.entity.Clazz;
import com.rao.mapper.ClazzMapper;
import com.rao.service.IClazzService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.checkerframework.checker.units.qual.C;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 * 班级表 服务实现类
 * </p>
 *
 * @author rao3030
 * @since 2021-11-04
 */
@Service
public class ClazzServiceImpl extends ServiceImpl<ClazzMapper, Clazz> implements IClazzService {

    @Autowired
    JdbcTemplate jdbcTemplate;

    @Resource
    ClazzMapper clazzMapper;

    @Override
    public ClazzVO oneByIdDetail(Integer id) {
        return clazzMapper.oneByIdDetail(id);
    }

    @Override
    public List<ClazzVO> listAllDetail() {
        return clazzMapper.listAllDetail();
    }
}
